﻿<div class="top-row ps-3 navbar navbar-dark">
    <div class="container-fluid">
        <a class="navbar-brand" href="/Manager/Index">管理员界面</a>
        <button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">
            <span class="navbar-toggler-icon"></span>
        </button>
    </div>
</div>

<div class="@NavMenuCssClass nav-scrollable" @onclick="ToggleNavMenu">
    <nav class="flex-column">
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="/Manager/Index" Match="NavLinkMatch.All">
                <span class="oi" aria-hidden="true">
                    <Icon Type="setting" Theme="fill" />
                </span> 请假管理端
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="/AuthIndex" Match="NavLinkMatch.All">
                <span class="oi" aria-hidden="true">
                    <Icon Type="setting" Theme="fill" />
                </span> 人员管理系统
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="/MoveManagerIndex" Match="NavLinkMatch.All">
                <span class="oi" aria-hidden="true">
                    <Icon Type="setting" Theme="fill" />
                </span> 人员调动管理
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="/Manager/WOMIndex" Match="NavLinkMatch.All">
                <span class="oi" aria-hidden="true">
                    <Icon Type="setting" Theme="fill" />
                </span> 加班信息管理
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="/MorkManagerIndex" Match="NavLinkMatch.All">
                <span class="oi" aria-hidden="true">
                    <Icon Type="setting" Theme="fill" />
                </span> 加班信息管理
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="/Manager/SalaryManagerIndex" Match="NavLinkMatch.All">
                <span class="oi" aria-hidden="true">
                    <Icon Type="setting" Theme="fill" />
                </span> 薪资管理
            </NavLink>
        </div>
        <div class="nav-item px-3">
            <NavLink class="nav-link" href="" Match="NavLinkMatch.All" style="color:red">
                <span class="oi" aria-hidden="true">
                    <Icon Type="close" Theme="outline" />
                </span> 退出
            </NavLink>
        </div>
    </nav>
</div>

@code {
    private bool collapseNavMenu = true;

    private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;

    private void ToggleNavMenu() {
        collapseNavMenu = !collapseNavMenu;
    }
}
